package com.zut.Conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
/**
* {@code @Author:} 无恙
* {@code @Description:} 短信验证配置信息
 */
@RefreshScope
@Configuration
public class SMSConf {


    /**
     * 腾讯云账户
     */

    public static String  SECRET_ID;

    /**
     * 腾讯云账户密钥
     */

    public static String SECRET_KEY;

    /**
     * 短信应用SDK AppID
     */

    public static int APP_ID;

    /**
     *  短信应用SDK AppKey
     */

    public static String APP_KEY;

    /**
     * 短信模板ID，需要在短信应用中申请templateId
     */

    public static int TEMPLATED_ID;

    /**
     * 签名，使用的是签名内容，而不是签名ID
     */

    public static String SMS_SIGN;

    @Value("${sms.secret-id}")
    public  void setSecretId(String secretId) {
        SECRET_ID = secretId;
    }
    @Value("${sms.secret-key}")
    public  void setSecretKey(String secretKey) {
        SECRET_KEY = secretKey;
    }
    @Value("${sms.app-id}")
    public  void setAppId(int appId) {
        APP_ID = appId;
    }
    @Value("${sms.app-key}")
    public  void setAppKey(String appKey) {
        APP_KEY = appKey;
    }
    @Value("${sms.templated-id}")
    public  void setTemplatedId(int templatedId) {
        TEMPLATED_ID = templatedId;
    }
    @Value("${sms.sign}")
    public void setSmsSign(String smsSign) {
        SMS_SIGN = smsSign;
    }

}
